<!---- SUI模板 on ${DATE} -->
<script ng-init="initCssAndJs()"></script>
<script ng-init="initCss('review-page/css/review.css')"></script>
<div class="page" id="page-pre" ng-init="tourdynaInfo()">
	<div class="content infinite-scroll">
		<header class="bar bar-nav">
			<a class="icon icon-left pull-left button-nav" href="javascript:history.back(-1)"></a>

			<h1 class="title">消息详情</h1>
		</header>
		<div class="content_release_all">
			<ul>
				<li>
					<div class="content_border_setting">
						<div class="user_top">
							<div class="content_user_img">
								<a href="#/other_home" ng-click="GoToOtherUser(dynamicInfo.user.userId)">
									<img ng-if="!dynamicInfo.user.userAvatarAddress" ng-src="page/home-page/img/avatar.png" />
									<img ng-if="dynamicInfo.user.userAvatarAddress" ng-src="{{dynamicInfo.user.userAvatarAddress}}" /></a>
							</div>
							<div class="nickname_distance">
								<div class="user_nickname">{{dynamicInfo.user.userNickName}}</div>
								<div class="distance">想去&nbsp;<i class="fa fa-map-marker"></i> {{dynamicInfo.placeTo}}</div>
							</div>
							<div class="time_type">
								<div class="time">{{dynamicInfo.tourdynaDate|date:"yyyy-MM-dd HH:mm:ss"}}</div>
							</div>
						</div>
						<div style="clear: both"></div>
						<div class="release_content">
							<ul>
								<li>{{dynamicInfo.tourdynaContent}}</li>
							</ul>
						</div>
						<div ng-if="dynamicInfo.tourdynaImg" class="img_div">
							<span ng-repeat="img in dynamicInfo.tourdynaImg track by $index">
                                <img ng-src="{{img}}" ng-click="showImg(dynamicInfo.tourdynaImg,$index)"/>
                                    </span>
						</div>
						<div class="release_details">
							<div class="release_one">
								出发地点：{{dynamicInfo.placeFrom}}
							</div>
							<div class="release_two">
								拼车类型：<span ng-if="dynamicInfo.tourdynaType==0">人找车</span><span ng-if="dynamicInfo.tourdynaType==1">车找人</span>
							</div>
						</div>

						<div class="release_details">
							<div class="release_one connect">
								联系方式：{{dynamicInfo.contactway}}
							</div>
							<div class="release_two">
								出发日期：{{dynamicInfo.tourdynaOutTime|date:"yyyy/MM/dd"}}
							</div>
						</div>

						<div class="three_tip">
							<div class="user_distance">距我{{dynamicInfo.distance}}</div>
							<div class="three">
								<ul>
									<li class="li_div_list">
										<div class="style_div"><i class="fa fa-thumbs-o-up">{{dynamicInfo.tourdynaLikeNum}}</i>
										</div>
									</li>
									<li class="li_div_list">
										<div class="style_div2"><i class="fa fa-comment-o">{{dynamicInfo.tourdynaCommentNum}}</i></div>
									</li>
									<li ng-if="dynamicInfo.isColl==1" class="li_div_list"><i class="fa fa-heart-o collection" style="color:red;">收藏</i></li>
									<li ng-if="dynamicInfo.isColl!=1" class="li_div_list" ng-click="addCollection(dynamicInfo.tourdynaId,$index,1)"><i class="fa fa-heart-o collection">收藏</i></li>
								</ul>
							</div>
						</div>
					</div>
				</li>
			</ul>
		</div>

		<div class="review_details" ng-if="commentList">
			<ul>

				<li ng-repeat="comment in commentList">
					<div class="review_border">
						<div class="user_avatar_div">
							<a href="#/other_home" ng-click="GoToOtherUser(comment.user1.userId)">
								<img ng-if="!comment.user1.userAvatarAddress" ng-src="page/home-page/img/avatar.png" />
								<img ng-if="comment.user1.userAvatarAddress" ng-src="{{comment.user1.userAvatarAddress}}" />
							</a>
						</div>
						<div class="user_review_other">
							<a ng-click="updateReviewperson(comment.user1.userNickName,comment.user1.userId,comment.commentId)">
								<div class="user_nickname2">{{comment.user1.userNickName}}</div>
								<div class="review_content">{{comment.commentContent}}</div>
							</a>
							<a href="#/review_more" ng-if="comment.replyNum>0" ng-click="gotoReviewMore(comment.commentId)">
								<div class="more">
									查看{{comment.replyNum}}回复>
								</div>
							</a>

							<!--<div class="review_time">04-29&nbsp;15:28</div>-->
							<div class="review_time">{{comment.commentDate|date:"MM-dd HH:mm"}}</div>

						</div>
					</div>
					<div style="clear: both"></div>

				</li>
			</ul>
			<!-- 加载提示符 -->
			<div class="infinite-scroll-preloader">
				<div class="preloader"></div>
			</div>
		</div>

	</div>

	<div class="review_bottom">
		<input type="text" ng-model="dynamicComment" autofocus="autofocus" placeholder="回复 {{userNickName}}" value="{{dynamicComment}}">

		<div class="send" ng-click="review()">发送</div>
	</div>
</div>

<div ng-init="suiMobileInit('review-page/js/review-page.js')"></div>